package com.woniuxy.joylifecenter.service;

import com.woniuxy.common.entity.CenterRole;

import java.util.*;

public interface RoleService {
    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/6
     * @Param [centerRole]
     * @Description 添加角色
     **/
    int addRole(CenterRole centerRole);

    /**
     * @return List<CenterRole>
     * @Author ArmWatt
     * @Date 2020/5/6
     * @Param [roleName]
     * @Description 添加角色验重
     **/
    List<CenterRole> queryRoleByName(CenterRole centerRole);

    /**
     * @return java.util.List<com.woniuxy.common.entity.CenterRole>
     * @Author ArmWatt
     * @Date 2020/5/7
     * @Param [centerRole]
     * @Description 多条件模糊查询
     **/
    List<CenterRole> queryRoleByCondition(CenterRole centerRole);

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/7
     * @Param [centerRole]
     * @Description 编辑角色
     **/
    int editRole(CenterRole centerRole);

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/7
     * @Param [centerRole]
     * @Description 编辑角色去重
     **/
    int editVerify(CenterRole centerRole);

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/7
     * @Param [roleId]
     * @Description
     **/
    int deleteRole(String roleId);

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/7
     * @Param [centerRole]
     * @Description 批量删除角色
     **/
    int batchDeleteRole(List<String> roleIds);


}
